<template>
<div id="title">
<ul id="title-ul">
  <li><img src="../../../assets/common/back.png" alt="" @click="goBack"></li>
  <li>这些都是"断货王"</li>
  <li><img src="../../../assets/common/share.png" alt=""></li>
</ul>
</div>
</template>
<script>
  export default {
    methods:{
      goBack() {
        this.$router.go(-1);
      }
    }
  }
</script>
<style scoped>
#title{
  width: 100%;
  height: 4.8rem;
  background-color: #e53e42;
  color: white;
  position: relative;
}
  #title-ul li{
    display: inline-block;
    font-size: 1.8rem;
  }
  #title-ul {
    width:calc(100% - 2rem);
    height: 2rem;
    /*margin: 0 auto;*/
    position: absolute;
    top:1.5rem;
    left: 1rem;
    right: 1rem;
  }
  #title-ul li:nth-child(1) img{
    width:1.2rem;
    height: 1.9rem;
    position: absolute;
    top:0;
    left: 0;
  }
  #title-ul li:nth-child(2){
    width:17rem;
    text-align: center;
    position: absolute;
    top:0;
    left:calc(50% - 8.5rem);
  }
  #title-ul li:nth-child(3) img{
    width:1.8rem;
    height: 1.8rem;
    position: absolute;
    top:0;
    right: 0;
  }
</style>
